//decompress
var fs=require('fs');
var zlib=require('zlib');
var rStream=fs.createReadStream('copy.txt.gz');
var wStream=fs.createWriteStream('decompress.txt');

var zip=zlib.createGunzip();
var pipe=rStream.pipe(zip);
pipe.pipe(wStream);

console.log("finish decompress");